import service from "../../utils/request"

export const addLockService = (data: LockService): Promise<Result<string>> => service.post('lockservice', data)

export const getLockServicePage = (page: number, remark: string): Promise<PageResult<ListLockService>> => service.get(`/lockservice/page?page=${page}&remark=${remark}`)

export const editLockService = (id: string, data: LockService): Promise<Result<string>> => service.patch(`/lockservice/${id}`, data)

export const delLockService = (id: string): Promise<Result<string>> => service.delete(`/lockservice/${id}`)

export const manyDelLockService = (idList: string[]): Promise<Result<string>> => service.post('/lockservice/delMany', idList)